{extend name="ashippingmanagement/Public/base" /}
{block name="container"}
      <style>

      </style>
     <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">历史发运数据导入</h2>
    </div>
    <!-- 标题 -->
  <form id="form_id" action="" class="form-inline" method="post">
      <table class="table table-bordered" style="margin: 0">
      <tr>
        <td>选择日期</td>
        <td>
          <select name="n" id="n" class="form-control" style="display: inline-block;width: 140px">
              <option value="" selected>请选择</option>
              <option value="2020">2020</option>
              <option value="2019">2019</option>
              <option value="2018">2018</option>
              <option value="2017">2017</option>
              <option value="2016">2016</option>
              <option value="2015">2015</option>
              <option value="2014">2014</option>
              <option value="2013">2013</option>
              <option value="2012">2012</option>
              <option value="2011">2011</option>
              <option value="2010">2010</option>
              <option value="2009">2009</option>
              <option value="2008">2008</option>
              <option value="2007">2007</option>
              <option value="2006">2006</option>
              <option value="2005">2005</option>
          </select>年
           <select name="y" id="y" class="form-control" style="display: inline-block;width: 140px">
              <option value="" selected>请选择</option>
              <option value="12">12</option>
              <option value="11">11</option>
              <option value="10">10</option>
              <option value="09">09</option>
              <option value="08">08</option>
              <option value="07">07</option>
              <option value="06">06</option>
              <option value="05">05</option>
              <option value="04">04</option>
              <option value="03">03</option>
              <option value="02">02</option>
              <option value="01">01</option>
          </select>月
          <span class="lr_5"></span> <button class="btn btn-info" type="submit">查询</button>
            <script>
                $('#n').val("<?php if(isset($where['n'])) echo $where['n']; ?>");
                $('#y').val("<?php if(isset($where['y'])) echo $where['y']; ?>");
            </script>
        </td>
      </tr>
    </table>
    <table class="table table-bordered text-center table-hover">
      <tr class="info">
        <th class="text-center">No.</th>
        <th class="text-center">操作人</th>
        <th class="text-center">操作记录</th>
        <th class="text-center">导入文件(可下载)</th>
        <th class="text-center">操作日期</th>
      </tr>
        {volist name="data" id="list"}
      <tr>
        <td>{$i}</td>
        <td>{$list.operator}</td>
        <td>{$list.log}</td>
        <td><a href="{:url('Ashippingmanagement/downFile')}?path=/uploads/bx_fy/{$list.file}">{$list.file}</a></td>
        <td>{$list.date}</td>
      </tr>
        {/volist}

  </table>
     <h5 class="text-center">
            总共有{$count}条记录，第{$page}/{$maxpage}页，当前页：<input id="page" type="text" name="pages" style="width: 70px;" value="" class="form-control" /><button type="submit" style="height: 23px;" id="gopage">GO</button>&nbsp;&nbsp;<button type="submit" onclick="$('#form_id').find('select').val('');$('#form_id').find('input').val('');" style="height: 23px;" id="fistpage">首页</button>&nbsp;&nbsp; 每页显示
            <select id="pagesize" name="limts" style="width: 70px" class="form-control">
            <option value='1'>1</option>
            <option value='5'>5</option>
            <option value='10'>10</option>
          </select>条
         <script>
             $('#pagesize').val("{$limit}");
         </script>
        </h5>
  </form>
       <script>
          $(document).ready(function(){
               var $ObjectNum =$(".ObjectNum");
             toNum($ObjectNum);
          })


       </script>
{/block}